package com.yizhang.pattern.decorator;

import java.math.BigDecimal;

/**
 * @Author: yi.zhang
 * @CreateTime: 2025-08-29 13:57:33
 * @Description:
 */
public abstract class DecoratorCoffee implements Coffee {

    protected Coffee coffee;

    public DecoratorCoffee(Coffee coffee) {
        this.coffee = coffee;
    }

    @Override
    public BigDecimal getPrice() {
        return coffee.getPrice();
    }

    @Override
    public String getDescription() {
        return coffee.getDescription();
    }
}
